package org.gitos.cloud.domain.tcp;

/**
 * Created by shizhengchu on 16/1/13.
 * 设备id
 */
public class DeviceId extends Field {

    public static final int LENGTH = 6;

    public DeviceId() {
        init(LENGTH);
    }

    public static DeviceId instance() {
        DeviceId deviceId = new DeviceId();
        return deviceId;
    }

    public static DeviceId instance(byte[] id) {
        DeviceId deviceId = new DeviceId();
        deviceId.setValue(id);
        return deviceId;
    }


}
